package com.sys.domain;
/**
 * @ClassName: Download 
 * @Description: TODO(用户下载的域模型类) 
 * @author 詹金浩 
 * @date 2018年3月8日 上午11:16:26
 */
public class Download implements Comparable<Download> {

	//进行下载操作的用户id（唯一）
	private String userId;
	//被下载的文件id（唯一）
	private String fileId;
	//下载时间
	private String downTime;
	public String getUserId() {
		return userId;
	}
	public void setUserId(String userId) {
		this.userId = userId;
	}
	public String getFileId() {
		return fileId;
	}
	public void setFileId(String fileId) {
		this.fileId = fileId;
	}
	public String getDownTime() {
		return downTime;
	}
	public void setDownTime(String downTime) {
		this.downTime = downTime;
	}
	@Override
	public int compareTo(Download o) {
		return o.getDownTime().compareTo(downTime);
	}
	@Override
	public String toString() {
		return "Download [userId=" + userId + ", fileId=" + fileId + ", downTime=" + downTime + "]";
	}
	
}
